/*
 * @Author: MuQuanyu(MQy)
 * @Date: 2025-10-23 16:35:18
 * @LastEditTime: 2025-10-23 16:39:29
 * @email: muquanyu@outlook.com
 */
import { http } from "@/utils/http";
import type { SysRolePageParams } from "./types";

export function GetSysRolePage(params: SysRolePageParams) {
  return http.get<any>("/api/sys-role/page", params, {});
}

export function AddSysRole(params: any) {
  return http.post<any>("/api/sys-role/add", params, {});
}

export function EditSysRole(params: any) {
  return http.post<any>("/api/sys-role/edit", params, {});
}

export function DeleteSysRole(params: any) {
  return http.post<any>("/api/sys-role/delete", params, {});
}

export function GetSysRoleDetail(params: any) {
  return http.get<any>("/api/sys-role/detail", params, {});
}
